package ae.pcfc.etks.online.wf.service.client.provider;

import javax.annotation.Resource;

import ae.pcfc.etks.online.wf.WFProcessType;
import ae.pcfc.etks.online.wf.WorkflowCommon;
import ae.pcfc.etks.online.wf.service.client.ClientAdminWF;
import ae.pcfc.etks.online.wf.service.client.vo.ClientAdminCompleteStepVO;
import ae.pcfc.etks.online.wf.service.client.vo.ClientAdminLaunchIncidentVO;
import ae.pcfc.etks.online.wf.service.client.vo.CompleteStepVO;

public class ClientPersonAdminWFImpl extends BaseWFImpl implements ClientAdminWF {

	public Integer launchClientAdminWF(ClientAdminLaunchIncidentVO incidentVO) {
		return this.launchIncident(incidentVO);
	}

	public void completeClientAdminWFStep(ClientAdminCompleteStepVO completeStepVO) {
		this.completeStep(completeStepVO);
		
	}
	@Resource(name="clientPersonRegistrationProcessCode")
	public void setWfProcessType(WFProcessType processCode) {
	    this.wfProcessType = processCode;
	}
	
	private WorkflowCommon workflowCommon;

	public WorkflowCommon getWorkflowCommon() {
	    return workflowCommon;
	}

	public void setWorkflowCommon(WorkflowCommon workflowCommon) {
	    this.workflowCommon = workflowCommon;
	}
	/**
	 * updateCompleteStepVO
	 * 
	 * @see ae.pcfc.etks.online.wf.service.client.ClientAdminWF#updateCompleteStepVO(ae.pcfc.etks.online.wf.service.client.vo.CompleteStepVO, java.lang.String, java.lang.String, java.lang.String)
	 * 
	 */
	public void updateCompleteStepVO(CompleteStepVO completeStepVO,
		String strStepName, String status, String comment) {
	    this.workflowCommon.updateCompleteStepVO(completeStepVO, strStepName, status, comment);
	    
	}
	/**
	 * getFinDeptStepName
	 * 
	 * @see ae.pcfc.etks.online.wf.service.client.ClientAdminWF#getFinDeptStepName()
	 * 
	 */
	public String getFinDeptStepName() {
	    return this.workflowCommon.getFinDeptStepName();
	}
}
